<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>装修</title>
</head>
<body>
<script>
    function decoration() {
        function plumber(a) {
            alert("水电工来安装水管了");
            return a;
        }

        function mudMan(b) {
            alert("泥匠来刷房子了");
            return b;
        }

        function carpenter(c) {
            alert("木匠来做家具了");
            return c;
        }

        function painter(d) {
            alert("油漆工来刷油漆了");
            return d;
        }

         plumber(mudMan(carpenter(painter(1))));
    }

    decoration();
</script>
</body>
</html>